package com.small.nacos.naming.healthcheck;

import com.small.nacos.naming.consistency.KeyBuilder;
import com.small.nacos.naming.core.Service;

/**
 * @Author zhoujin
 * @Date 2022/7/23 12:29
 */
public class ClientBeatCheckTask implements Runnable {

    private Service service;

    public ClientBeatCheckTask(Service service) {
        this.service = service;
    }

    @Override
    public void run() {
        System.out.println("开始执行任务");
    }

    public String taskKey() {
        return KeyBuilder.buildServiceMetaKey(service.getNamespaceId(), service.getName());
    }
}
